<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>LiveChat客服系统</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <{css href="/static/admin/libs/bootstrap/css/bootstrap.min.css" /}>
    <{css href="/static/admin/libs/font-awesome/css/font-awesome.min.css" /}>
    <{css href="/static/admin/libs/Ionicons/css/ionicons.min.css" /}>
    <{css href="/static/admin/css/AdminLTE.min.css" /}>
    <{css href="/static/admin/libs/datatables.net-bs/css/dataTables.bootstrap.min.css"}>
    <{css href="/static/admin/libs/iCheck/all.css"}>
    <{css href="/static/admin/css/skins/_all-skins.min.css" /}>
    <{css href="/static/admin/libs/layer/theme/default/layer.css"}>
    <{css href="/static/admin/css/johnxu.css"}>
    <{block name="css"}><{/block}>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<!-- Site wrapper -->
<div class="wrapper">
    <header class="main-header">
        <!-- Logo -->
        <a href="/admin" class="logo">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini">Live</span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg"><b>Live</b>Chat</span>
        </a>
        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top">
            <!-- Sidebar toggle button-->
            <a href="javascript:void(0);" class="sidebar-toggle" data-toggle="push-menu" role="button">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>

            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <!-- Messages: style can be found in dropdown.less-->
                    <li class="dropdown messages-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="fa fa-envelope-o"></i>
                            <span class="label label-success">4</span>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="header">You have 4 messages</li>
                            <li>
                                <!-- inner menu: contains the actual data -->
                                <ul class="menu">
                                    <li><!-- start message -->
                                        <a href="#">
                                            <div class="pull-left">
                                                <img src="/static/admin/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                                            </div>
                                            <h4>
                                                Support Team
                                                <small><i class="fa fa-clock-o"></i> 5 mins</small>
                                            </h4>
                                            <p>Why not buy a new awesome theme?</p>
                                        </a>
                                    </li>
                                    <!-- end message -->
                                </ul>
                            </li>
                            <li class="footer"><a href="#">See All Messages</a></li>
                        </ul>
                    </li>
                    <!-- User Account: style can be found in dropdown.less -->
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <!-- todo: 这里写入登录的账号和头像 -->
                            <img src="/static/admin/img/user2-160x160.jpg" class="user-image" alt="User Image">
                            <span class="hidden-xs"><{$Think.session.auth_user.nickname}></span>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- User image -->
                            <li class="user-header">
                                <img src="/static/admin/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                                <p>
                                    欢迎使用客服系统
                                    <small>@copyright 2019</small>
                                </p>
                            </li>
                            <!-- Menu Footer-->
                            <li class="user-footer">
                                <div class="pull-left">
                                    <a href="<{:url('admin/user/profile')}>" class="btn btn-default btn-flat">个人信息</a>
                                </div>
                                <div class="pull-right">
                                    <a href="<{:url('admin/login/logout')}>" class="btn btn-default btn-flat">退出登录</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
    </header>

    <!-- Left side column. contains the sidebar -->
    <aside class="main-sidebar">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- Sidebar user panel -->
            <div class="user-panel">
                <div class="pull-left image">
                    <img src="/static/admin/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                </div>
                <div class="pull-left info">
                    <p><{$Think.session.auth_user.nickname}></p>
                    <a href="#"><i class="fa fa-circle text-success"></i> <{$Think.session.auth_user.username}></a>
                </div>
            </div>
            <!-- sidebar menu: : style can be found in sidebar.less -->
            <ul class="sidebar-menu" data-widget="tree">
                <li class="header">菜单导航</li>
                <li <{eq name="$Request.controller" value="Index"}>class="active"<{/eq}>>
                    <a href="/admin">
                        <i class="fa fa-dashboard"></i> <span>后台首页</span>
                    </a>
                </li>
                <li <{eq name="$Request.controller" value="Group"}>class="active"<{/eq}>>
                    <a href="<{:url('group/index')}>">
                        <i class="fa fa-cubes"></i> <span>分组管理</span>
                    </a>
                </li>
                <li <{eq name="$Request.controller" value="Service"}>class="active"<{/eq}>>
                    <a href="<{:url('service/index')}>">
                        <i class="fa fa-users"></i> <span>客服管理</span>
                    </a>
                </li>
                <li class="treeview <{eq name="$Request.controller" value="System"}>active<{/eq}>">
                    <a href="javascript:void(0);">
                        <i class="fa fa-laptop"></i>
                        <span>系统设置</span>
                        <span class="pull-right-container">
                            <i class="fa fa-angle-left pull-right"></i>
                        </span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="<{:url('system/config')}>"><i class="fa fa-cogs"></i> <span>系统配置</span></a>
                        </li>
                        <li><a href="<{:url('system/reply')}>"><i class="fa fa-reply"></i> <span>自动回复</span></a></li>
                    </ul>
                </li>
            </ul>
        </section>
        <!-- /.sidebar -->
    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <!-- todo: 面包屑导航 -->
            <h1>
                <{block name="h1"}>&nbsp;<{/block}>
            </h1>
            <ol class="breadcrumb">
                <li><a href="/admin"><i class="fa fa-dashboard"></i> 后台首页</a></li>
                <{block name="breadcrumb"}>
                <li><a href="#">Examples</a></li>
                <li class="active">Blank page</li>
                <{/block}>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <{block name="content"}>
            <!-- Default box -->
            <div class="box">
                <div class="box-header with-border">
                    <h3 class="box-title">Title</h3>
                    <div class="box-tools pull-right">
                        <button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip"
                                title="Collapse">
                            <i class="fa fa-minus"></i></button>
                        <button type="button" class="btn btn-box-tool" data-widget="remove" data-toggle="tooltip" title="Remove">
                            <i class="fa fa-times"></i></button>
                    </div>
                </div>
                <div class="box-body">
                    Start creating your amazing application!
                </div>
                <!-- /.box-body -->
                <div class="box-footer">
                    Footer
                </div>
                <!-- /.box-footer-->
            </div>
            <!-- /.box -->
            <{/block}>
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    <footer class="main-footer">
        <div class="pull-right hidden-xs">
            <b>Version</b> 2.4.0
        </div>
        <strong>Copyright &copy; 2019 <a href="/">Live Chat</a>.</strong> All rights reserved.
    </footer>
</div>
<!-- ./wrapper -->

<!-- jQuery 3 -->
<{js href="/static/admin/libs/jquery/jquery.min.js" /}>
<!-- Bootstrap 3.3.7 -->
<{js href="/static/admin/libs/bootstrap/js/bootstrap.min.js" /}>
<!-- SlimScroll -->
<{js href="/static/admin/libs/jquery-slimscroll/jquery.slimscroll.min.js" /}>
<!-- FastClick -->
<{js href="/static/admin/libs/fastclick/fastclick.js" /}>
<{js href="/static/admin/libs/datatables.net/js/jquery.dataTables.min.js"}>
<{js href="/static/admin/libs/datatables.net-bs/js/dataTables.bootstrap.min.js"}>
<{js href="/static/admin/libs/iCheck/icheck.min.js"}>
<{js href="/static/admin/libs/layer/layer.js"}>
<!-- AdminLTE App -->
<{js href="/static/admin/js/adminlte.min.js" /}>
<{block name="js"}>
<{js href="/static/admin/js/johnxu.js"}>
<{/block}>
<script>
    $(document).ready(function() {
        $('.sidebar-menu').tree()
    })
</script>
</body>
</html>
